<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{simulacionDiseno.page1}" id="page1">
            <ui:html binding="#{simulacionDiseno.html1}" id="html1">
                <ui:head binding="#{simulacionDiseno.head1}" id="head1">
                    <ui:link binding="#{simulacionDiseno.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{simulacionDiseno.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{simulacionDiseno.form1}" id="form1">
                        <div style="position: absolute; left: 0px; top: 0px">
                            <jsp:directive.include file="encab1.jspf"/>
                        </div>
                        <h:panelGrid binding="#{simulacionDiseno.gridPanel2}" cellpadding="20" id="gridPanel2" style="left: 72px; top: 360px; position: absolute; text-align: center">
                            <h:panelGrid binding="#{simulacionDiseno.gridPanel1}" cellpadding="15" columns="2" id="gridPanel1">
                                <ui:table binding="#{simulacionDiseno.table1}" clearSortButton="true" id="table1" paginateButton="true"
                                    paginationControls="true" sortPanelToggleButton="true" style="width: 130px"
                                    title="Variables que serán removidas de la politica" width="130">
                                    <script><![CDATA[
/* ----- Functions for Table Preferences Panel ----- */
/*
 * Toggle the table preferences panel open or closed
 */
function togglePreferencesPanel() {
  var table = document.getElementById("form1:table1");
  table.toggleTblePreferencesPanel();
}
/* ----- Functions for Filter Panel ----- */
/*
 * Return true if the filter menu has actually changed,
 * so the corresponding event should be allowed to continue.
 */
function filterMenuChanged() {
  var table = document.getElementById("form1:table1");
  return table.filterMenuChanged();
}
/*
 * Toggle the custom filter panel (if any) open or closed.
 */
function toggleFilterPanel() {
  var table = document.getElementById("form1:table1");
  return table.toggleTableFilterPanel();
}
/* ----- Functions for Table Actions ----- */
/*
 * Initialize all rows of the table when the state
 * of selected rows changes.
 */
function initAllRows() {
  var table = document.getElementById("form1:table1");
  table.initAllRows();
}
/*
 * Set the selected state for the given row groups
 * displayed in the table.  This functionality requires
 * the 'selectId' of the tableColumn to be set.
 *
 * @param rowGroupId HTML element id of the tableRowGroup component
 * @param selected Flag indicating whether components should be selected
 */
function selectGroupRows(rowGroupId, selected) {
  var table = document.getElementById("form1:table1");
  table.selectGroupRows(rowGroupId, selected);
}
/*
 * Disable all table actions if no rows have been selected.
 */
function disableActions() {
  // Determine whether any rows are currently selected
  var table = document.getElementById("form1:table1");
  var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
  // Set disabled state for top actions
  document.getElementById("form1:table1:tableActionsTop:deleteTop").setDisabled(disabled);
  // Set disabled state for bottom actions
  document.getElementById("form1:table1:tableActionsBottom:deleteBottom").setDisabled(disabled);
}]]></script>
                                    <ui:tableRowGroup binding="#{simulacionDiseno.tableRowGroup1}" emptyDataMsg="Ninguna" id="tableRowGroup1" rows="10"
                                        sourceData="#{simulacionDiseno.sct0002DataProvider}" sourceVar="currentRow">
                                        <ui:tableColumn binding="#{simulacionDiseno.tableColumn1}" headerText="Nombre de Regla" id="tableColumn1" sort="CDGOMDLOPLTCA">
                                            <ui:staticText binding="#{simulacionDiseno.staticText1}" id="staticText1" text="#{currentRow.value['CDGOMDLOPLTCA']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{simulacionDiseno.tableColumn2}" headerText="Codigo variable" id="tableColumn2" sort="TPO">
                                            <ui:staticText binding="#{simulacionDiseno.staticText2}" id="staticText2" text="#{currentRow.value['TPO']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{simulacionDiseno.tableColumn3}" headerText="Nombre variable" id="tableColumn3" sort="CDGOPRDCTO">
                                            <ui:staticText binding="#{simulacionDiseno.staticText3}" id="staticText3" text="#{currentRow.value['CDGOPRDCTO']}"/>
                                        </ui:tableColumn>
                                    </ui:tableRowGroup>
                                </ui:table>
                                <ui:table binding="#{simulacionDiseno.table2}" clearSortButton="true" id="table2" paginateButton="true"
                                    paginationControls="true" sortPanelToggleButton="true" style="width: 140px" title="Variables que serán removidas del modelo" width="94">
                                    <script><![CDATA[
/* ----- Functions for Table Preferences Panel ----- */
/*
 * Toggle the table preferences panel open or closed
 */
function togglePreferencesPanel() {
  var table = document.getElementById("form1:table2");
  table.toggleTblePreferencesPanel();
}
/* ----- Functions for Filter Panel ----- */
/*
 * Return true if the filter menu has actually changed,
 * so the corresponding event should be allowed to continue.
 */
function filterMenuChanged() {
  var table = document.getElementById("form1:table2");
  return table.filterMenuChanged();
}
/*
 * Toggle the custom filter panel (if any) open or closed.
 */
function toggleFilterPanel() {
  var table = document.getElementById("form1:table2");
  return table.toggleTableFilterPanel();
}
/* ----- Functions for Table Actions ----- */
/*
 * Initialize all rows of the table when the state
 * of selected rows changes.
 */
function initAllRows() {
  var table = document.getElementById("form1:table2");
  table.initAllRows();
}
/*
 * Set the selected state for the given row groups
 * displayed in the table.  This functionality requires
 * the 'selectId' of the tableColumn to be set.
 *
 * @param rowGroupId HTML element id of the tableRowGroup component
 * @param selected Flag indicating whether components should be selected
 */
function selectGroupRows(rowGroupId, selected) {
  var table = document.getElementById("form1:table2");
  table.selectGroupRows(rowGroupId, selected);
}
/*
 * Disable all table actions if no rows have been selected.
 */
function disableActions() {
  // Determine whether any rows are currently selected
  var table = document.getElementById("form1:table2");
  var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
  // Set disabled state for top actions
  document.getElementById("form1:table2:tableActionsTop:deleteTop").setDisabled(disabled);
  // Set disabled state for bottom actions
  document.getElementById("form1:table2:tableActionsBottom:deleteBottom").setDisabled(disabled);
}]]></script>
                                    <ui:tableRowGroup binding="#{simulacionDiseno.tableRowGroup2}" emptyDataMsg="Ninguna" id="tableRowGroup2" rows="10"
                                        sourceData="#{simulacionDiseno.sct0005DataProvider}" sourceVar="currentRow">
                                        <ui:tableColumn binding="#{simulacionDiseno.tableColumn4}" headerText="Nombre de la Regla" id="tableColumn4" sort="CDGOMDLOPLTCA">
                                            <ui:staticText binding="#{simulacionDiseno.staticText4}" id="staticText4" text="#{currentRow.value['CDGOMDLOPLTCA']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{simulacionDiseno.tableColumn5}" headerText="Codigo variable" id="tableColumn5" sort="CDGORGLA">
                                            <ui:staticText binding="#{simulacionDiseno.staticText5}" id="staticText5" text="#{currentRow.value['CDGORGLA']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{simulacionDiseno.tableColumn10}" headerText="Nombre de la variable" id="tableColumn10" sort="VLRVRBLE">
                                            <ui:staticText binding="#{simulacionDiseno.staticText14}" id="staticText14" text="#{currentRow.value['VLRVRBLE']}"/>
                                        </ui:tableColumn>
                                    </ui:tableRowGroup>
                                </ui:table>
                            </h:panelGrid>
                            <ui:table binding="#{simulacionDiseno.table3}" clearSortButton="true" id="table3" paginateButton="true" paginationControls="true"
                                sortPanelToggleButton="true" style="width: 358px" title="Variables que serán removidas de la interfaz" width="358">
                                <script><![CDATA[
/* ----- Functions for Table Preferences Panel ----- */
/*
 * Toggle the table preferences panel open or closed
 */
function togglePreferencesPanel() {
  var table = document.getElementById("form1:table3");
  table.toggleTblePreferencesPanel();
}
/* ----- Functions for Filter Panel ----- */
/*
 * Return true if the filter menu has actually changed,
 * so the corresponding event should be allowed to continue.
 */
function filterMenuChanged() {
  var table = document.getElementById("form1:table3");
  return table.filterMenuChanged();
}
/*
 * Toggle the custom filter panel (if any) open or closed.
 */
function toggleFilterPanel() {
  var table = document.getElementById("form1:table3");
  return table.toggleTableFilterPanel();
}
/* ----- Functions for Table Actions ----- */
/*
 * Initialize all rows of the table when the state
 * of selected rows changes.
 */
function initAllRows() {
  var table = document.getElementById("form1:table3");
  table.initAllRows();
}
/*
 * Set the selected state for the given row groups
 * displayed in the table.  This functionality requires
 * the 'selectId' of the tableColumn to be set.
 *
 * @param rowGroupId HTML element id of the tableRowGroup component
 * @param selected Flag indicating whether components should be selected
 */
function selectGroupRows(rowGroupId, selected) {
  var table = document.getElementById("form1:table3");
  table.selectGroupRows(rowGroupId, selected);
}
/*
 * Disable all table actions if no rows have been selected.
 */
function disableActions() {
  // Determine whether any rows are currently selected
  var table = document.getElementById("form1:table3");
  var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
  // Set disabled state for top actions
  document.getElementById("form1:table3:tableActionsTop:deleteTop").setDisabled(disabled);
  // Set disabled state for bottom actions
  document.getElementById("form1:table3:tableActionsBottom:deleteBottom").setDisabled(disabled);
}]]></script>
                                <ui:tableRowGroup binding="#{simulacionDiseno.tableRowGroup3}" id="tableRowGroup3" rows="10"
                                    sourceData="#{simulacionDiseno.sct0062DataProvider}" sourceVar="currentRow">
                                    <ui:tableColumn binding="#{simulacionDiseno.tableColumn7}" headerText="Nombre del registro" id="tableColumn7" sort="CDGOVRBLE">
                                        <ui:staticText binding="#{simulacionDiseno.staticText7}" id="staticText7" text="#{currentRow.value['CDGOVRBLE']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{simulacionDiseno.tableColumn8}" headerText="Codigo variable" id="tableColumn8" sort="NMBRECMPO">
                                        <ui:staticText binding="#{simulacionDiseno.staticText8}" id="staticText8" text="#{currentRow.value['NMBRECMPO']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{simulacionDiseno.tableColumn9}" headerText="Nombre variable" id="tableColumn9" sort="TPODTOSCORE">
                                        <ui:staticText binding="#{simulacionDiseno.staticText9}" id="staticText9" text="#{currentRow.value['TPODTOSCORE']}"/>
                                    </ui:tableColumn>
                                </ui:tableRowGroup>
                            </ui:table>
                        </h:panelGrid>
                        <ui:label binding="#{simulacionDiseno.label1}" id="label1" style="left: 360px; top: 96px; position: absolute" text="Producto:"/>
                        <ui:label binding="#{simulacionDiseno.label2}" id="label2" style="left: 360px; top: 120px; position: absolute" text="Sublinea:"/>
                        <ui:label binding="#{simulacionDiseno.label3}" id="label3" style="left: 360px; top: 144px; position: absolute" text="Tipo Solicitud:"/>
                        <ui:staticText binding="#{simulacionDiseno.staticText10}" id="staticText10" style="left: 456px; top: 96px; position: absolute" text="#{simulacionDiseno.sct0004DataProvider.value['SCT0004.DSCRPCION']}"/>
                        <ui:staticText binding="#{simulacionDiseno.staticText11}" id="staticText11" style="left: 456px; top: 120px; position: absolute" text="#{simulacionDiseno.sct0019DataProvider.value['SCT0019.DSCRPCIONSBLNEA']}"/>
                        <ui:staticText binding="#{simulacionDiseno.staticText12}" id="staticText12" style="left: 456px; top: 144px; position: absolute" text="#{simulacionDiseno.sct0021DataProvider.value['SCT0021.DSCRPCIONTPOSLCTUD']}"/>
                        <ui:button action="#{simulacionDiseno.menu_action}" binding="#{simulacionDiseno.menu}" id="menu" mini="true" primary="true"
                            style="left: 47px; top: 120px; position: absolute; width: 71px" text="Cerrar"/>
                        <ui:button action="#{simulacionDiseno.back_action}" binding="#{simulacionDiseno.back}" id="back" mini="true" primary="true"
                            style="left: 143px; top: 120px; position: absolute; width: 71px" text="&lt;Regresar"/>
                        <ui:button action="#{simulacionDiseno.ok_action}" binding="#{simulacionDiseno.ok}" id="ok" mini="true" primary="true"
                            style="left: 239px; top: 120px; position: absolute; width: 71px" text="Aprobar &gt;"/>
                        <ui:staticText binding="#{simulacionDiseno.staticText13}" id="staticText13"
                            style="height: 46px; left: 48px; top: 192px; position: absolute; width: 814px" text="La Politica y el Modelo asociados a este tipo de solicitud, se desactivarán, y usted o alguien que tenga los permisos suficientes, deberá activar una nueva política y modelo,  removiendo las variables de donde se indica abajo, de lo contrario no podrá activar un nuevo modelo o política. Por el contrario, las variables de interface serán removidas automáticamente por el sistema."/>
                        <ui:messageGroup binding="#{simulacionDiseno.messageGroup1}" id="messageGroup1" style="left: 408px; top: 240px; position: absolute"/>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
